import request from '@/utils/request'

// 充值审批列表
export function rechargeList(data) {
  return request({
    url: '/finance/rechargeList',
    method: 'post',
    data
  })
}
// 审批
export function rechargeCheck(data) {
  return request({
    url: '/finance/rechargeCheck',
    method: 'post',
    data
  })
}

// 资金流水
export function listFinanceLog(data) {
  return request({
    url: '/finance/listFinanceLog',
    method: 'post',
    data
  })
}
// 账单报表
export function listReport(data) {
  return request({
    url: '/order/listReport',
    method: 'post',
    data
  })
}
// 账单调整列表
export function listAdjust(data) {
  return request({
    url: '/user/listAdjust',
    method: 'post',
    data
  })
}
// 账单调整类型
export function listAdjustType(data) {
  return request({
    url: '/user/listAdjustType',
    method: 'post',
    data
  })
}

// 账单调整新增
export function adjustAmount(data) {
  return request({
    url: '/user/adjustAmount',
    method: 'post',
    data
  })
}
// 账单调整
export function adjustAmountConfirmBatch(data) {
  return request({
    url: '/user/adjustAmountConfirmBatch',
    method: 'post',
    data
  })
}
// 账单调整移除
export function deleteAdjust(data) {
  return request({
    url: '/user/deleteAdjust',
    method: 'post',
    data
  })
}
// 授信列表
export function listLog(data) {
  return request({
    url: '/credit/listLog',
    method: 'post',
    data
  })
}
// 授信列表添加
export function editCreditLimit(data) {
  return request({
    url: '/user/editCreditLimit',
    method: 'post',
    data
  })
}
// 授信拒绝
export function refuse(data) {
  return request({
    url: '/credit/refuse',
    method: 'post',
    data
  })
}
// 授信通过
export function throwCredit(data) {
  return request({
    url: '/credit/throwCredit',
    method: 'post',
    data
  })
}
// 充值审批导出
export function exportRechargeList(data) {
  return request({
    url: '/finance/exportRechargeList',
    method: 'post',
    data
  })
}
// 资金流水导出
export function exportListFinanceLog(data) {
  return request({
    url: '/finance/exportListFinanceLog',
    method: 'post',
    data
  })
}
// 汇总导出
export function collecExport(data) {
  return request({
    url: '/order/collecExport',
    method: 'post',
    data
  })
}
